package org.turnlink.sclm.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
 * ContactList entity. @author MyEclipse Persistence Tools
 */
@XStreamAlias("contactList")
@Entity
@Table(name = "contact_list", catalog = "turnlink")
public class ContactList implements java.io.Serializable {

	// Fields

	private Integer contactListId;
	private String listName;
	private String description;
	private Integer accountId;
	private Timestamp createDate;
	private Timestamp modifiedDate;

	// Constructors

	/** default constructor */
	public ContactList() {
	}

	/** minimal constructor */
	public ContactList(String listName, Integer accountId, Timestamp createDate) {
		this.listName = listName;
		this.accountId = accountId;
		this.createDate = createDate;
	}

	/** full constructor */
	public ContactList(String listName, String description, Integer accountId,
			Timestamp createDate, Timestamp modifiedDate) {
		this.listName = listName;
		this.description = description;
		this.accountId = accountId;
		this.createDate = createDate;
		this.modifiedDate = modifiedDate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "contact_list_id", unique = true, nullable = false)
	public Integer getContactListId() {
		return this.contactListId;
	}

	public void setContactListId(Integer contactListId) {
		this.contactListId = contactListId;
	}

	@Column(name = "list_name", nullable = false, length = 200)
	public String getListName() {
		return this.listName;
	}

	public void setListName(String listName) {
		this.listName = listName;
	}

	@Column(name = "description", length = 2000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "account_id", nullable = false)
	public Integer getAccountId() {
		return this.accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modified_date", length = 19)
	public Timestamp getModifiedDate() {
		return this.modifiedDate;
	}

	public void setModifiedDate(Timestamp modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

}